FROM openjdk:8
# 添加JAR文件
# cache-demo.jar
ADD ./target/elec-gateway-0.0.1-SNAPSHOT.jar /app/elec-gateway-0.0.1-SNAPSHOT.jar

WORKDIR /app

# 暴露端口
EXPOSE 8080

# java -jar -Dserver.port=8090 docker-test1.jar
#ENTRYPOINT ["java", "-jar",  "elec-gateway-0.0.1-SNAPSHOT.jar"]

ENTRYPOINT ["java", "-jar",  "elec-gateway-0.0.1-SNAPSHOT.jar" ,"--spring.profiles.active=prod"]
